package com.walsai.pcsys.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

import com.walsai.pcsys.core.service.ProblemManager;

public class ProblemController extends AbstractController{
	
private ProblemManager problemManager;


	public void setProblemManager(ProblemManager problemManager){
		this.problemManager = problemManager;
	}
	

	@Override
	protected ModelAndView handleRequestInternal(HttpServletRequest request,
			HttpServletResponse response) throws Exception {		
		return new ModelAndView("problemView","problemModel",problemManager.getAll());
		
	}
	
}
